package print;

import java.io.FileNotFoundException;
import java.io.PrintStream;

public class PrintDemo2 {
    public static void main(String[] args) throws FileNotFoundException {
        PrintStream ps=new PrintStream("G:\\Javatest2\\print\\3.txt");
        ps.println("a");
        ps.println("b");
        ps.println("c");
        ps.println("d");
        ps.print("e");
        System.out.println(ps);
        ps.close();
    }
}
